package com.hydra.auth.feign;

import com.hydra.jres.interceptor.FeignInterceptor;
import com.hydra.mail.feign.FeignMailService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;

/**
 * 邮件服务类的第三方远程调用接口
 * 注意，FeignClient注解的url加个冒号是为了允许读取的配置不存在时赋空值
 */
@Component
@FeignClient(
        value="${feign.service.mail-service.name}",
        url="${feign.service.mail-service.url:}",
        contextId = "auth-service",
        configuration = FeignInterceptor.class
)
public interface OpenFeignMailService extends FeignMailService {
}
